package com.zhubayi.mapper;

import com.zhubayi.entity.Favor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author 祝八一
 */
@Mapper
@Repository
public interface FavorMapper {
    void add(Favor favor);
    Favor queryByUidVid(@Param("videoId") Integer videoId, @Param("userId") Integer UserId);
    Integer queryCountByUid(@Param("Uid") Integer Uid);

    void deleteByUId(@Param("uid") Integer uid, @Param("vid") Integer vid);
}
